-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase (firestore connection) #9
Conversation
…rking on live firestore (emulator not working)
Had to downgrade 11.x works for me! |
lol, the error I was documenting here (with the emulator) might have been fixed just 15 min ago googleapis/google-auth-library-nodejs#1747 But it might need to be propagated to the @google-cloud/storage package (which is the one that firebase-admin uses) I think we can keep 11.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tysm Carlos !! Been playing around with it and everything does seem to work on work on live instances but for some reason for me the Firebase emulator UI is not syncing properly we can tackle it next week 🙌.
In the below-attached video :
Screen.Recording.2024-02-03.at.4.57.58.PM.mov
- I ran firebase emulator with some seed data
- Started my frontend (I edited
listCollections
function a bit to add document inside "cohorts" ) - Go to localhost:3000 (This ran
listCollections
and ideally it should have been updated in firebase emulator UI) - for some reason emulator UI is not updating, then I tried deleteing "cohorts" collection to see if its been reflected in SE-2 frontend and its not updated in SE-2 frontend too.
But I might be missing something in while configuring locally.
But in case we meet next week we can debug it and lol I also have few doubts , but merging this for since it works on live instances and I can also tinker more on #8
Hey @technophile-04 I have experienced that before, and in my case was because of the
That needs to match with the local instance project Id. I think you had to specify a project ID when running the emulators the first time, right? You can also do Let me know if that helps! |
Ohhh yeah actually there was difference in |
firebase-admin
libUpdate: was getting an error (see below) but fixed it by downgrading to 11.x
The emulator works fine, but I'm not able to connect to it from the code (using something similar from what we have a bgv3). I'm getting:
It shouldn't happen since it's an emulator connection. Tried with the env vars too:
We might leave this for a future PR (to not spend too much time on it... since we can use a "live" firestore instance)
Fixes #3